<!--
  Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.

  https://www.mall4j.com/

  未经允许，不可做商业用途！

  版权所有，侵权必究！
-->
<template>
  <el-config-provider
    namespace="el"
    :locale="locale"
  >
    <router-view />
  </el-config-provider>
</template>
<script setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'
// eslint-disable-next-line no-console
console.log('mall4j.v240226')

// element-plus组件语言统一配置
const locale = computed(() => {
  return $t('language') === 'zh_CN' ? zhCn : en
})

</script>

<!-- eslint-disable-next-line vue-scoped-css/enforce-style-type -->
<style lang="scss">
@use '@/assets/app.scss';
</style>
